package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 一级部门的账号权限信息对象 sys_dept_permit
 *
 * @author yfkj
 * @date 2021-10-12
 */
@Data
@AllArgsConstructor
public class SysDeptPermit extends com.ruoyi.common.core.web.domain.BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 一级部门的账号权限信息主键 */
    @TableField(exist = true)
    @ApiModelProperty(value =  "${comment}")
    private Long sysDeptPermitId;
    /** 部门 */
    @com.ruoyi.common.core.annotation.Excel(name = "部门")
    @TableField(exist = true)
    @ApiModelProperty(value =  "部门")
    private Long deptId;
    /** 允许创建的第三方维护公司数量 */
    @com.ruoyi.common.core.annotation.Excel(name = "允许创建的第三方维护公司数量")
    @TableField(exist = true)
    @ApiModelProperty(value =  "允许创建的第三方维护公司数量")
    private Integer limitMaintenanceNumber;
    /** 允许创建的资产所有方数量 */
    @com.ruoyi.common.core.annotation.Excel(name = "允许创建的资产所有方数量")
    @TableField(exist = true)
    @ApiModelProperty(value =  "允许创建的资产所有方数量")
    private Integer limitOwnNumber;
    /** 截止使用日期 */
    @com.ruoyi.common.core.annotation.Excel(name = "截止使用日期")
    @TableField(exist = true)
    @ApiModelProperty(value =  "截止使用日期")
    private Long limitUseTime;
    public static final String SYS_DEPT_PERMIT_ID="sys_dept_permit_id";
    public static final String DEPT_ID="dept_id";
    public static final String LIMIT_MAINTENANCE_NUMBER="limit_maintenance_number";
    public static final String LIMIT_OWN_NUMBER="limit_own_number";
    public static final String LIMIT_USE_TIME="limit_use_time";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("sysDeptPermitId", getSysDeptPermitId())
                .append("deptId", getDeptId())
                .append("limitMaintenanceNumber", getLimitMaintenanceNumber())
                .append("limitOwnNumber", getLimitOwnNumber())
                .append("limitUseTime", getLimitUseTime())
                .toString();
    }
}
